package edu.sctu.practice.zhengsenwen.assign.assign03;

import edu.sctu.practice.zhengsenwen.assign.assign03.test01.Circle;
import edu.sctu.practice.zhengsenwen.assign.assign03.test01.OtherOne;
import edu.sctu.practice.zhengsenwen.assign.assign03.test01.Rectangle;

/**
 * Created by zhengsenwen on 2015/10/22.
 */
public class Client {


//    程序主方法中创建两个几何对象，一个圆和一个矩形，并用GeometricObject类的引用变量引用它们，
//    调用equalArea比较两个对象的面积是否相等，并调用displayGeometricObject方法显示对象信息。

    public static void main(String[] args) {

        Rectangle rectangle = new Rectangle("red", 3, 4);
        Circle circle = new Circle("yellow", 3);

        OtherOne.displayGeometricObject(circle);
        OtherOne.displayGeometricObject(rectangle);

        OtherOne.equalArea(rectangle, circle);

    }
}
